Other Protocols
The following protocols are available globally.
-
Data source for
See moreMGLComputedShapeSource
. This protocol defines two optional methods for fetching data, one based on tile coordinates, and one based on a bounding box. Classes that implement this protocol must implement one, and only one of the methods. Methods on this protocol will not be called on main thread, they will be called on the caller’srequestQueue
.Declaration
Objective-C
@protocol MGLComputedShapeSourceDataSource <NSObject>
Swift
protocol MGLComputedShapeSourceDataSource : NSObjectProtocol
-
The
See moreMGLOfflineStorageDelegate
protocol defines methods that a delegate of anMGLOfflineStorage
object can optionally implement to transform various types of URLs before downloading them via the internet.Declaration
Objective-C
@protocol MGLOfflineStorageDelegate <NSObject>
Swift
protocol MGLOfflineStorageDelegate : NSObjectProtocol